import java.util.Scanner;

public class Ex2_13{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter investment amount: ");
		double investmentAmount = input.nextDouble();
		System.out.print("Enter annually interest rate: ");
		double annualInterestRate = input.nextDouble();
		System.out.print("Enter number of years: ");
		int numberOfYears = input.nextInt();
		double futureInvestmentValue = investmentAmount * 
			Math.pow(1 + annualInterestRate/12/100, numberOfYears*12);
		System.out.printf("Accumlated value is %8.2f\n", futureInvestmentValue);
	}
}